package com.salt.modules.sys.feign;

import com.salt.common.constant.Common;
import com.salt.modules.sys.service.RoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Set;

/**
 * @Description
 * @Author salt
 * @Date 2022/4/19
 * @Version 1.0.1
 */
@RestController
@RequestMapping(Common.Service.SALT_SYSTEM_ROLE_URL_PREFIX)
public class SystemRoleClientController {

    @Autowired
    private RoleService roleService;

    @PostMapping("selectUserIds")
    public Set<String> selectUserIds(@RequestParam("roleIds") Set<String> roleIds){
        return roleService.selectUserIds(roleIds);
    }
}
